package org.jiajie.coffeecodes.sp.aop;


import org.aopalliance.aop.Advice;

/**
 * 定义 Advisor 访问者
 * Advisor 承担了 Pointcut 和 Advice 的组合，
 *
 * @author jie
 * @date 2021/9/11 9:19 AM
 */
public interface Advisor {
    /**
     * Return the advice part of this aspect. An advice may be an interceptor,
     * a before advice, a throws advice, etc.
     * @return the advice that should apply if the pointcut matches
     * @see org.aopalliance.intercept.MethodInterceptor
     * @see BeforeAdvice
     */
    Advice getAdvice();
}
